package com.kingint.web.admin.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kingint.mbg.bas.entity.BasDepartment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kingint.mbg.dto.MemberReturn;
import com.kingint.web.util.validateUtil.ValidList;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-21
 */
public interface BasDepartmentService extends IService<BasDepartment> {

    /**
     * 插入部门信息
     * @return
     */
    int insertBaseDepartmentInfo(BasDepartment basDepartment);

    /**
     * 删除部门信息
     * @param id
     * @return
     */
    int deleteDepartmentInfo(Integer id);

    /**
     * 分页查询部门信息
     * @param basDepartment
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<BasDepartment> getDepartmentList(BasDepartment basDepartment,Integer pageNum,Integer pageSize);


    /**
     * 更新部门信息
     * @param basDepartment
     * @return
     */
    int updateDepartment(BasDepartment basDepartment);

    /**
     * 查询部门下的对应的人
     * @return
     */
    List<BasDepartment> getDepartmentPerson();

    /**
     * 查询所有部门信息
     * @return
     */
    List<BasDepartment> getAllDepartmentList();

    /**
     * 获取对应部门下的人员信息
     * @param departmentId
     * @param i
     * @return
     */
    List<MemberReturn> getPersonList(Integer departmentId, int i);
}
